<?php

class Kd_Data_Dcl_Expression_Orderby extends Kd_Data_Dcl_Expression_Base {

    public function __construct() {
        parent::__construct();
    }

    public function desc($field){
        return $this->addExpression(new Kd_Data_Dcl_Expression_Orderby_Field($field, 'desc'));
    }

    public function asc($field){
        return $this->addExpression(new Kd_Data_Dcl_Expression_Orderby_Field($field, 'asc'));
    }

    public function getExpressionType(){
        return 'orderby';
    }
}